package com.yaorange.nongjt.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yaorange.common.annotation.Excel;
import com.yaorange.common.core.domain.BaseEntity;

/**
 * 打印机序列号认证情况对象 njt_serial_auth
 * 
 * @author mudajun
 * @date 2025-03-01
 */
public class NjtSerialAuth extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户注册表主键 */
    @Excel(name = "用户注册表主键")
    private Long userId;

    /** 序列号 */
    @Excel(name = "序列号")
    private String serialCode;

    /** MAC */
    @Excel(name = "MAC")
    private String macCode;

    /** 认证状态 0-未认证 1-已认证 */
    @Excel(name = "认证状态 0-未认证 1-已认证")
    private String authStatus;

    /** 认证时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "认证时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date authTime;

    /** 是否可用 0-禁用 1-正常 */
    @Excel(name = "是否可用 0-禁用 1-正常")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setSerialCode(String serialCode) 
    {
        this.serialCode = serialCode;
    }

    public String getSerialCode() 
    {
        return serialCode;
    }
    public void setMacCode(String macCode) 
    {
        this.macCode = macCode;
    }

    public String getMacCode() 
    {
        return macCode;
    }
    public void setAuthStatus(String authStatus) 
    {
        this.authStatus = authStatus;
    }

    public String getAuthStatus() 
    {
        return authStatus;
    }
    public void setAuthTime(Date authTime) 
    {
        this.authTime = authTime;
    }

    public Date getAuthTime() 
    {
        return authTime;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("serialCode", getSerialCode())
            .append("macCode", getMacCode())
            .append("authStatus", getAuthStatus())
            .append("authTime", getAuthTime())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
